package com.acedemo.game2048;

import ohos.ace.ability.AceAbility;
import ohos.aafwk.content.Intent;
import ohos.agp.utils.Color;
import ohos.agp.window.service.WindowManager;

public class MainAbility extends AceAbility {
    @Override
    public void onStart(Intent intent) {
        StorageAbility.register(this);
        SoundAbility.register(this);
        super.onStart(intent);
        getWindow().setTransparent(true);
        getWindow().setStatusBarColor(Color.getIntColor("#595C96"));
    }

    @Override
    public void onStop() {
        StorageAbility.unregister();
        SoundAbility.unregister();
        super.onStop();
    }
}
